<!DOCTYPE html>

<html>
<head>
	<title>Nerv Widgets 3</title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta> 
	
	<link rel="stylesheet" href="../../themes/nw3/form.css" type="text/css" media="all"></link>
	<link rel="stylesheet" href="../../themes/nw3/progressbar.css" type="text/css" media="all"></link>
	
	<script src="../../nw3.js" type="text/javascript"></script>
	<script src="../../plugins/form/form.js" type="text/javascript"></script>
	<script src="../../plugins/progressbar/progressbar.js" type="text/javascript"></script>
	<script src="../../langs/it.js" type="text/javascript"></script>
</head>


<body>

<script>
// stampa titolo pagina
window.document.title = NW3.toString();
</script>


<br />
Nerv Progressbar Plugin
<br />
<br />

<script type="text/javascript">
/* PROGRESS BAR | Begin */
var oProgressBar = new NW3.progressbar.ProgressBar({
	width : '200',
	message : true
});

oProgressBar.print();

var pr = 1;
timer = function(){
	pr = (parseInt(pr)+10);
	if(pr >= 100) pr = 100;
	oProgressBar.setProgression(pr);
	if(pr < 100){
		msg = 'Download status: ' + pr + '%';
	}
	else {
		msg = 'Download complete'
	}
	oProgressBar.setMessage(msg);
	
	if(pr < 100) setTimeout("timer()", 200);
}
</script>
<br>
<script type="text/javascript">
// button start progress
var oButtonProgress = new NW3.form.Button();
oButtonProgress.setText('Download');
oButtonProgress.setTitle('Click to start download');
oButtonProgress.onClick(function(id){
	timer();
});
oButtonProgress.print();
/* PROGRESS BAR | End */
</script>


<br><br>

<br>
</body>
</html>
